<?php
class WFaq extends CWidget {
	var $options = array();
	var $skin = 'default';
	protected $data = array();
	public function init(){
		$default = array();
		$this->options = array_merge($default, $this->options);

		$this->data = Faq::model()->findAll();
		
		return parent::init();
	}
	
	public function run(){

		$this->render($this->skin, array( 'options'=>$this->options, 'data'=>$this->data, ));
	}
}